<?php
namespace app\api\model;
use think\Model;
class Purchasedata extends Model
{
   public function getIconAttr($value){
       $value = str_replace('\\', '/',$value);
       $picSrc = config('uploadsSrc').$value;
       return $picSrc;
   }
}
